package net.wsfcp.android.bean.resultbean;

import android.text.TextUtils;

import net.wsfcp.android.bean.resultbean.enumInterface.PayType;

import java.io.Serializable;
import java.util.ArrayList;
//返回订单列表
public class OrderBean implements Serializable {

    private int total;
    private int pages;
    private int page_num;
    private int page_size;
    private ArrayList<OrderList> data_list;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getPage_num() {
        return page_num;
    }

    public void setPage_num(int page_num) {
        this.page_num = page_num;
    }

    public int getPage_size() {
        return page_size;
    }

    public void setPage_size(int page_size) {
        this.page_size = page_size;
    }

    public ArrayList<OrderList> getData_list() {
        return data_list;
    }

    public void setData_list(ArrayList<OrderList> data_list) {
        this.data_list = data_list;
    }




    public class OrderList implements Serializable {
        private int id;
        private String orderNumber;
        private int buyNum;
        private double tradePrice;
        @PayType.Type
        private int payType;//0:微信 1:支付宝 2:银联 3:苹果IAP 4=货到付款
        private int payStatus;
        private int deliverStatus;
        private int freight;
        private String receiver;
        private String waybillNumber;
        private int status;
        private long createTime;
        private double showTradePrice;
        private double showFreight;
        private String showCreateTime;
        private double payAmount;
        private boolean canCancel;
        private String message;
        private String showStatus;
        private int payValidTime;
        private int page;
        private int pageSize;
        private int firstResult;
        private int fetchSize;
        private int sortMode;

        private String userId;
        private int goodsType;
        private int priceType;
        private String outTradeNo;
        private String payTime;
        private double receiptAmount;
        private String address;
        private String cellNum;
        private String remark;
        private String adminUserId;
        private String lastModifyTime;
        private String showPayTime;
        private String showDeliverTime;


        private ArrayList<Order2GoodsList> order2GoodsList;

        public String getShowDeliverTime() {
            return TextUtils.isEmpty(showDeliverTime) ? "— " : showDeliverTime;
        }

        public void setShowDeliverTime(String showDeliverTime) {
            this.showDeliverTime = showDeliverTime;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public int getGoodsType() {
            return goodsType;
        }

        public void setGoodsType(int goodsType) {
            this.goodsType = goodsType;
        }

        public int getPriceType() {
            return priceType;
        }

        public void setPriceType(int priceType) {
            this.priceType = priceType;
        }

        public String getOutTradeNo() {
            return outTradeNo;
        }

        public void setOutTradeNo(String outTradeNo) {
            this.outTradeNo = outTradeNo;
        }

        public String getPayTime() {
            return payTime;
        }

        public void setPayTime(String payTime) {
            this.payTime = payTime;
        }

        public double getReceiptAmount() {
            return receiptAmount;
        }

        public void setReceiptAmount(double receiptAmount) {
            this.receiptAmount = receiptAmount;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getCellNum() {
            return cellNum;
        }

        public void setCellNum(String cellNum) {
            this.cellNum = cellNum;
        }

        public String getRemark() {
            return TextUtils.isEmpty(remark) ? "— " : remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public String getAdminUserId() {
            return adminUserId;
        }

        public void setAdminUserId(String adminUserId) {
            this.adminUserId = adminUserId;
        }

        public String getLastModifyTime() {
            return lastModifyTime;
        }

        public void setLastModifyTime(String lastModifyTime) {
            this.lastModifyTime = lastModifyTime;
        }

        public String getShowPayTime() {
            return showPayTime;
        }

        public void setShowPayTime(String showPayTime) {
            this.showPayTime = showPayTime;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getOrderNumber() {
            return orderNumber;
        }

        public void setOrderNumber(String orderNumber) {
            this.orderNumber = orderNumber;
        }

        public int getBuyNum() {
            return buyNum;
        }

        public void setBuyNum(int buyNum) {
            this.buyNum = buyNum;
        }

        public double getTradePrice() {
            return tradePrice;
        }

        public void setTradePrice(double tradePrice) {
            this.tradePrice = tradePrice;
        }

        public int getPayType() {
            return payType;
        }

        public void setPayType(@PayType.Type int payType) {
            this.payType = payType;
        }

        public int getPayStatus() {
            return payStatus;
        }

        public void setPayStatus(int payStatus) {
            this.payStatus = payStatus;
        }

        public int getDeliverStatus() {
            return deliverStatus;
        }

        public void setDeliverStatus(int deliverStatus) {
            this.deliverStatus = deliverStatus;
        }

        public int getFreight() {
            return freight;
        }

        public void setFreight(int freight) {
            this.freight = freight;
        }

        public String getReceiver() {
            return receiver;
        }

        public void setReceiver(String receiver) {
            this.receiver = receiver;
        }

        public String getWaybillNumber() {
            return waybillNumber;
        }

        public void setWaybillNumber(String waybillNumber) {
            this.waybillNumber = waybillNumber;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public double getShowTradePrice() {
            return showTradePrice;
        }

        public void setShowTradePrice(double showTradePrice) {
            this.showTradePrice = showTradePrice;
        }

        public double getShowFreight() {
            return showFreight;
        }

        public void setShowFreight(double showFreight) {
            this.showFreight = showFreight;
        }

        public String getShowCreateTime() {
            return showCreateTime;
        }

        public void setShowCreateTime(String showCreateTime) {
            this.showCreateTime = showCreateTime;
        }

        public double getPayAmount() {
            return payAmount;
        }

        public void setPayAmount(double payAmount) {
            this.payAmount = payAmount;
        }

        public boolean isCanCancel() {
            return canCancel;
        }

        public void setCanCancel(boolean canCancel) {
            this.canCancel = canCancel;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public String getShowStatus() {
            return showStatus;
        }

        public void setShowStatus(String showStatus) {
            this.showStatus = showStatus;
        }

        public int getPayValidTime() {
            return payValidTime;
        }

        public void setPayValidTime(int payValidTime) {
            this.payValidTime = payValidTime;
        }

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getFirstResult() {
            return firstResult;
        }

        public void setFirstResult(int firstResult) {
            this.firstResult = firstResult;
        }

        public int getFetchSize() {
            return fetchSize;
        }

        public void setFetchSize(int fetchSize) {
            this.fetchSize = fetchSize;
        }

        public int getSortMode() {
            return sortMode;
        }

        public void setSortMode(int sortMode) {
            this.sortMode = sortMode;
        }

        public ArrayList<Order2GoodsList> getOrder2GoodsList() {
            return order2GoodsList;
        }

        public void setOrder2GoodsList(ArrayList<Order2GoodsList> order2GoodsList) {
            this.order2GoodsList = order2GoodsList;
        }

        public class Order2GoodsList implements Serializable {
            private int orderId;
            private int goodsId;
            private int buyNum;
            private double unitPrice;
            private String goodsName;
            private String goodsImageUrl;
            private String goodsPageLink;
            private double showUnitPrice;
            private double showTradePrice;
            private int page;
            private int pageSize;
            private int firstResult;
            private int fetchSize;
            private int sortMode;

            public int getOrderId() {
                return orderId;
            }

            public void setOrderId(int orderId) {
                this.orderId = orderId;
            }

            public int getGoodsId() {
                return goodsId;
            }

            public void setGoodsId(int goodsId) {
                this.goodsId = goodsId;
            }

            public int getBuyNum() {
                return buyNum;
            }

            public void setBuyNum(int buyNum) {
                this.buyNum = buyNum;
            }

            public double getUnitPrice() {
                return unitPrice;
            }

            public void setUnitPrice(double unitPrice) {
                this.unitPrice = unitPrice;
            }

            public String getGoodsName() {
                return goodsName;
            }

            public void setGoodsName(String goodsName) {
                this.goodsName = goodsName;
            }

            public String getGoodsImageUrl() {
                return goodsImageUrl;
            }

            public void setGoodsImageUrl(String goodsImageUrl) {
                this.goodsImageUrl = goodsImageUrl;
            }

            public String getGoodsPageLink() {
                return goodsPageLink;
            }

            public void setGoodsPageLink(String goodsPageLink) {
                this.goodsPageLink = goodsPageLink;
            }

            public double getShowUnitPrice() {
                return showUnitPrice;
            }

            public void setShowUnitPrice(double showUnitPrice) {
                this.showUnitPrice = showUnitPrice;
            }

            public double getShowTradePrice() {
                return showTradePrice;
            }

            public void setShowTradePrice(double showTradePrice) {
                this.showTradePrice = showTradePrice;
            }

            public int getPage() {
                return page;
            }

            public void setPage(int page) {
                this.page = page;
            }

            public int getPageSize() {
                return pageSize;
            }

            public void setPageSize(int pageSize) {
                this.pageSize = pageSize;
            }

            public int getFirstResult() {
                return firstResult;
            }

            public void setFirstResult(int firstResult) {
                this.firstResult = firstResult;
            }

            public int getFetchSize() {
                return fetchSize;
            }

            public void setFetchSize(int fetchSize) {
                this.fetchSize = fetchSize;
            }

            public int getSortMode() {
                return sortMode;
            }

            public void setSortMode(int sortMode) {
                this.sortMode = sortMode;
            }
        }


    }
}
